package ru.spb.hibissscus.common;

import javax.swing.*;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Nimbus LookAndFeel
 */
public class Nimbus {

    /**
     * Log
     */
    private static final Logger LOG = LoggerFactory
            .getLogger(Nimbus.class);

    /**
     * Static LookAndFeel initialization
     */
    public static void setNimbusLookAndFeel() {
        try {
            for (UIManager.LookAndFeelInfo info : UIManager
                    .getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
            UIManager.put("Table.showGrid", "true");
        } catch (Exception e) {
            LOG.error("{}", e.getMessage());
        }
    }

}
